package com.yyge.entity;

import java.util.Objects;

public class OrderGoods {
         private Integer id;
         private String order_id;
         private String goods_serial;
         private Double  price;
         private Integer goods_number;
         private String  is_gift;
         private String  type_parent_name;
         private String  type_sub_name;
         private String goods_name;
         private  String  goods_img;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOrder_id() {
        return order_id;
    }

    public void setOrder_id(String order_id) {
        this.order_id = order_id;
    }

    public String getGoods_serial() {
        return goods_serial;
    }

    public void setGoods_serial(String goods_serial) {
        this.goods_serial = goods_serial;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Integer getGoods_number() {
        return goods_number;
    }

    public void setGoods_number(Integer goods_number) {
        this.goods_number = goods_number;
    }

    public String getIs_gift() {
        return is_gift;
    }

    public void setIs_gift(String is_gift) {
        this.is_gift = is_gift;
    }

    public String getType_parent_name() {
        return type_parent_name;
    }

    public void setType_parent_name(String type_parent_name) {
        this.type_parent_name = type_parent_name;
    }

    public String getType_sub_name() {
        return type_sub_name;
    }

    public void setType_sub_name(String type_sub_name) {
        this.type_sub_name = type_sub_name;
    }

    public String getGoods_name() {
        return goods_name;
    }

    public void setGoods_name(String goods_name) {
        this.goods_name = goods_name;
    }

    public String getGoods_img() {
        return goods_img;
    }

    public void setGoods_img(String goods_img) {
        this.goods_img = goods_img;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        OrderGoods that = (OrderGoods) o;
        return Objects.equals(id, that.id) && Objects.equals(order_id, that.order_id) && Objects.equals(goods_serial, that.goods_serial) && Objects.equals(price, that.price) && Objects.equals(goods_number, that.goods_number) && Objects.equals(is_gift, that.is_gift) && Objects.equals(type_parent_name, that.type_parent_name) && Objects.equals(type_sub_name, that.type_sub_name) && Objects.equals(goods_name, that.goods_name) && Objects.equals(goods_img, that.goods_img);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, order_id, goods_serial, price, goods_number, is_gift, type_parent_name, type_sub_name, goods_name, goods_img);
    }

    @Override
    public String toString() {
        return "OrderGoods{" +
                "id=" + id +
                ", order_id='" + order_id + '\'' +
                ", goods_serial=" + goods_serial +
                ", price=" + price +
                ", goods_number=" + goods_number +
                ", is_gift='" + is_gift + '\'' +
                ", type_parent_name='" + type_parent_name + '\'' +
                ", type_sub_name='" + type_sub_name + '\'' +
                ", goods_name='" + goods_name + '\'' +
                ", goods_img='" + goods_img + '\'' +
                '}';
    }
}
